import { MenuInfo, MenuSelect } from '../menu';
import { Page, Column, ResPageList, PageRowStatus, PageItemSearch } from '../../../common/types/page';
export type RoleId = number;
export type RoleInfo = {
  role_id: RoleId;
  role_name: number;
  role_status: number;
  role_desc: string;
  // menu_list?: Array<Pick<MenuInfo, 'menu_id' | 'menu_name'>>;
  // menu_action_list?: Array<Pick<MenuInfo, 'menu_id' | 'menu_name'>>;
  menu_id?: Array<number>;
  menu_action_id?: Array<number>;
  status_name: 10;
} & PageRowStatus;
export type ReqRoleParam = Pick<RoleInfo, 'role_id' | 'role_name' | 'role_status'> & Page;

export type ResRole = ResPageList<RoleInfo>;
export type ResRoleSearch = Array<PageItemSearch>;
export type RoleStatus = {
  role_id: Array<Number>; //用户id
  /**1正常 2禁用 */
  status: 1 | 2;
};
export type ResShowRole = RoleInfo;
export type AddRoleParam = Pick<RoleInfo, 'role_name' | 'role_desc'> & MenuSelect;
export type UpdateRoleParam = Pick<RoleInfo, 'role_id' | 'role_name' | 'role_desc'> & MenuSelect;
